import { title } from "echarts/lib/theme/dark";
import Layout from "../views/layout/Layout";
export const articleRoute = [
  {
    path: "",
    component: Layout,
    redirect: "/content/index",
    name: "article",
    meta: {
      title: "运营管理",
    },
    children: [
      {
        path: "",
        redirect: "/content/index",
        name: "content",
        meta: { title: "内容管理" },
        component: () => import("@/views/article/content/index"),
        children: [
          {
            path: "content/index",
            name: "adminContent",
            component: () =>
              import("@/views/article/content/adminContent/index"),
            meta: { title: "内容管理" },
          },
          {
            path: "content/cate",
            name: "adminContentCate",
            component: () =>
              import("@/views/article/content/adminContent/cate"),
            meta: { title: "内容分类" },
          },
          {
            path: "content/add",
            name: "adminContentAdd",
            component: () => import("@/views/article/content/adminContent/add"),
            meta: { title: "添加内容" },
            hidden: true,
          },
          {
            path: "content/detail",
            name: "contentdetail",
            component: () =>
              import("@/views/article/content/adminContent/detail"),
            meta: { title: "文章详情" },
            hidden: true,
          },

          {
            path: "content/topicArticles",
            name: "topicArticles",
            component: () =>
              import("@/views/article/content/adminContent/topicArticles"),
            meta: { title: "话题文章" },
            hidden: true,
          },
          {
            path: "content/posts",
            name: "posts",
            component: () =>
              import("@/views/article/content/adminContent/posts"),
            meta: { title: "帖子管理", icon: "ums-admin" },
            hidden: false,
          },
          {
            path: "content/postDetail",
            name: "postDetail",
            component: () =>
              import("@/views/article/content/adminContent/apply"),
            meta: { title: "帖子详情", icon: "ums-admin" },
            hidden: true,
          },
          {
            path: "content/talk",
            name: "talk",
            component: () =>
              import("@/views/article/content/adminContent/talk"),
            meta: { title: "评论详情" },
            hidden: true,
          },

          {
            path: "contentComment/index",
            name: "contentComment",
            component: () => import("@/views/article/comment/index"),
            meta: { title: "评论/答案审核" },
            hidden: true,
          },
          {
            path: "content/officialAccount",
            name: "officialAccount",
            component: () =>
              import("@/views/article/content/adminContent/officialAccount"),
            meta: { title: "评论管理" },
            hidden: false,
          },
          {
            path: "contentQuestion/index",
            name: "question",
            component: () => import("@/views/article/question/index"),
            meta: { title: "问提管理", icon: "" },
            hidden: true,
          },
          {
            path: "navy/index",
            name: "navy",
            component: () => import("@/views/article/navy/index"),
            meta: { title: "水军账号", icon: "" },
            hidden: true,
          },

          {
            path: "question/detail",
            name: "detail",
            component: () => import("@/views/article/question/detail"),
            meta: { title: "回答详情", icon: "" },
            hidden: true,
          },
          {
            path: "labelConfig/index",
            name: "labelConfig",
            component: () => import("@/views/article/labelConfig/index"),
            meta: { title: "标签管理", icon: "" },
          },
        ],
      },
      {
        path: "",
        redirect: "/articleConfig/banner",
        name: "articleConfig",
        component: () => import("@/views/article/articleConfig/route"),
        meta: { title: "配置管理" },
        children: [
          {
            path: "articleConfig/banner",
            name: "articleConfigBanner",
            component: () =>
              import("@/views/article/articleConfig/banner/index"),
            meta: { title: "banner管理" },
          },
          {
            path: "runningLantern/index",
            name: "runningLantern",
            component: () =>
              import("@/views/article/articleConfig/runningLantern/index"),
            meta: { title: "走马灯管理", icon: "" },
          },
          {
            path: "productRanking/index",
            name: "productRanking",
            component: () =>
              import("@/views/article/articleConfig/productRanking/index"),
            meta: { title: "产品榜单管理", icon: "" },
            hidden: true,
          },
          {
            path: "toolsConfig/index",
            name: "toolsConfig",
            component: () =>
              import("@/views/article/toolsConfig/toolsConfig/index"),
            meta: { title: "话题管理", icon: "" },
            hidden: true,
          },
        ],
      },
      {
        path: "materialLibrary/index",
        name: "materialLibrary",
        component: () => import("@/views/article/materialLibrary/index"),
        meta: { title: "素材库", icon: "ums-admin" },
        hidden: true,
      },
      {
        path: "shortLink/index",
        name: "shortLink",
        component: () => import("@/views/article/shortLink/index"),
        meta: { title: "短链管理", icon: "ums-admin" },
        hidden: true,
      },

      {
        path: "",
        redirect: "/lessonConfig/lessonSubject",
        name: "lessonConfig",
        meta: { title: "课程配置" },
        component: () => import("@/views/article/lesson/index"),
        children: [
          {
            path: "lessonConfig/lessonSubject",
            name: "lessonSubjectConfig",
            component: () =>
              import("@/views/article/lesson/lessonSubject/index"),
            meta: { title: "专题列表", icon: "" },
            // hidden: true
          },
          {
            path: "lessonSubject/addlist",
            name: "addlist",
            component: () =>
              import("@/views/article/lesson/lessonSubject/addlist"),
            meta: { title: "新增专题", icon: "ums-admin" },
            hidden: true,
          },
          {
            path: "/lessonSubject/details",
            name: "details",
            component: () =>
              import("@/views/article/lesson/lessonSubject/details"),
            meta: { title: "详情", icon: "ums-admin" },
            hidden: true,
          },
          {
            path: "lessonConfig/lessonMaterial",
            name: "lessonMaterialConfig",
            component: () =>
              import("@/views/article/lesson/lessonMaterial/index"),
            meta: { title: "素材列表", icon: "" },
          },
          {
            path: "lessonMaterialadd/addlist",
            name: "addlist",
            component: () =>
              import("@/views/article/lesson/lessonMaterial/addlist"),
            meta: { title: "新增素材", icon: "ums-admin" },
            hidden: true,
          },
          {
            path: "lessonConfig/lessonMaterialCate",
            name: "lessonMaterialCate",
            component: () =>
              import("@/views/article/lesson/lessonMaterial/cate"),
            meta: { title: "课程素材分类", icon: "" },
          },

          {
            path: "lessonConfig/lessonSubjectCate",
            name: "lessonSubjectCate",
            component: () =>
              import("@/views/article/lesson/lessonSubject/cate"),
            meta: { title: "专题分类", icon: "" },
          },
        ],
      },

      {
        path: "",
        redirect: "/imData/memberData",
        name: "imData",
        meta: { title: "IM管理", icon: "" },
        component: () => import("@/views/article/imData/route"),
        children: [
          {
            path: "article/memberData",
            name: "memberData",
            component: () => import("@/views/article/imData/memberData"),
            meta: { title: "会员数据", icon: "" },
          },
          {
            path: "article/groupData",
            name: "groupData",
            component: () => import("@/views/article/imData/groupData"),
            meta: { title: "群组管理", icon: "" },
          },
        ],
      },

      {
        path: "",
        redirect: "/article/resource",
        name: "fromResource",
        meta: { title: "渠道配置" },
        component: () => import("@/views/article/resource/route"),
        children: [
          {
            path: "article/resource",
            name: "articleresource",
            component: () => import("@/views/article/resource/index"),
            meta: { title: "渠道列表" },
          },
          {
            path: "article/resourceCategory",
            name: "articleresourceCategory",
            component: () => import("@/views/article/resource/categoryList"),
            meta: { title: "渠道分类" },
            hidden: true,
          },
        ],
      },
      {
        path: "customerstatistics",
        name: "customerstatistics",
        component: () => import("@/views/customer/statistics/index"),
        meta: { title: "用户行为分析", icon: "ums-admin" },
        hidden: false,
      },
      {
        path: "",
        name: "operationDashboard",
        redirect: "/operation/dashboard",
        component: () => import("@/views/article/operationDashboard/route"),
        meta: { title: "运营看板", icon: "ums-admin" },
        children: [
          {
            path: "operation/dashboard",
            name: "dashboard",
            component: () =>
              import("@/views/article/operationDashboard/Dashboard/index"),
            meta: { title: "运营看板" },
          },
          {
            path: "operation/dashboardList",
            name: "aroperationdList",
            component: () =>
              import("@/views/article/operationDashboard/operationList/index"),
            meta: { title: "" },
          },
        ],
      },

      {
        path: "",
        name: "videoData",
        redirect: "/shortVideo/index",
        component: () => import("@/views/article/videoData/route"),
        meta: { title: "短视频", icon: "ums-admin" },
        children: [
          {
            path: "shortVideo/index",
            name: "shortVideo",
            component: () =>
              import("@/views/article/videoData/shortVideo/index"),
            hidden: true,
            meta: { title: "短视频管理" },
          },
          {
            path: "shortVideo/add",
            name: "shortVideoAdd",
            component: () =>
              import("@/views/article/videoData/shortVideo/addVideo"),
            hidden: true,
            meta: { title: "添加短视频" },
          },
          {
            path: "hotVideo",
            name: "hotVideo",
            component: () => import("@/views/article/videoData/hotVideo/index"),
            hidden: true,
            meta: { title: "添加短视频" },
          },
        ],
      },

      {
        path: "",
        name: "activityConfig",
        redirect: "/activityData/index",
        component: () =>
          import("@/views/article/activityConfig/activityData/index"),
        meta: { title: "活动管理", icon: "ums-admin" },
        children: [
          {
            path: "activityData/index",
            name: "activityData",
            component: () =>
              import("@/views/article/activityConfig/activityData/index"),
            meta: { title: "活动列表" },
          },
        ],
      },

      {
        path: "",
        name: "tool",
        redirect: "/tool/errCode",
        component: () => import("@/views/article/toolData/route"),
        meta: { title: "工具箱管理", icon: "ums-admin" },
        children: [
          {
            path: "tool/errCode",
            name: "errCode",
            component: () => import("@/views/article/toolData/errCode/index"),
            meta: { title: "错误码管理" },
          },
          {
            path: "tool/errCodeAdd",
            name: "errCodeAdd",
            component: () => import("@/views/article/toolData/errCode/add"),
            meta: { title: "添加错误码" },
            hidden: true,
          },
          {
            path: "tool/hundredQuestion",
            name: "hundredQuestion",
            component: () =>
              import("@/views/article/toolData/hundredQuestion/index"),
            meta: { title: "一百问" },
          },
          {
            path: "tool/hundredQuestionAdd",
            name: "hundredQuestionAdd",
            component: () =>
              import("@/views/article/toolData/hundredQuestion/add"),
            meta: { title: "添加百问" },
            hidden: true,
          },
          {
            path: "tool/knowQuestion",
            name: "knowQuestion",
            component: () =>
              import("@/views/article/toolData/knowQuestion/index"),
            meta: { title: "惠懂你" },
          },
          {
            path: "tool/knowQuestionAdd",
            name: "knowQuestionAdd",
            component: () =>
              import("@/views/article/toolData/knowQuestion/add"),
            meta: { title: "添加惠懂你" },
            hidden: true,
          },
          {
            path: "tool/lineProductQuestion",
            name: "lineProductQuestion",
            component: () =>
              import("@/views/article/toolData/lineProductQuestion/index"),
            meta: { title: "产品线问答" },
          },
          {
            path: "tool/lineProductQuestionAdd",
            name: "lineProductQuestionAdd",
            component: () =>
              import("@/views/article/toolData/lineProductQuestion/add"),
            meta: { title: "添加产品线问答" },
            hidden: true,
          },
          {
            path: "tool/shareFriendData",
            name: "shareFriendData",
            component: () =>
              import("@/views/article/toolData/shareFriendData/index"),
            meta: { title: "朋友圈素材" },
          },
          {
            path: "tool/shareFriendDataAdd",
            name: "shareFriendDataAdd",
            component: () =>
              import("@/views/article/toolData/shareFriendData/add"),
            meta: { title: "添加朋友圈素材" },
            hidden: true,
          },
          {
            path: "tool/shareFriendPic",
            name: "shareFriendPic",
            component: () =>
              import("@/views/article/toolData/shareFriendPic/index"),
            meta: { title: "朋友圈图片" },
          },
          {
            path: "tool/shareFriendPicAdd",
            name: "shareFriendPicAdd",
            component: () =>
              import("@/views/article/toolData/shareFriendPic/add"),
            meta: { title: "添加朋友圈图片" },
            hidden: true,
          },
          {
            path: "tool/templateData",
            name: "templateData",
            component: () =>
              import("@/views/article/toolData/templateData/index"),
            meta: { title: "模板管理" },
          },
          {
            path: "tool/templateDataAdd",
            name: "templateDataAdd",
            component: () =>
              import("@/views/article/toolData/templateData/add"),
            meta: { title: "添加模板" },
            hidden: true,
          },
          {
            path: "tool/bankAdressConfig",
            name: "bankAdressConfig",
            component: () =>
              import("@/views/article/toolData/bankAdressConfig/index"),
            meta: { title: "网点" },
          },
          {
            path: "tool/bankAdressConfigAdd",
            name: "bankAdressConfigAdd",
            component: () =>
              import("@/views/article/toolData/bankAdressConfig/add"),
            meta: { title: "添加网点" },
            hidden: true,
          },
          {
            path: "tool/bankBookConfig",
            name: "bankBookConfig",
            component: () =>
              import("@/views/article/toolData/bankBookConfig/index"),
            meta: { title: "行口通讯录" },
          },
          {
            path: "tool/bankBookConfigAdd",
            name: "bankBookConfigAdd",
            component: () =>
              import("@/views/article/toolData/bankBookConfig/add"),
            meta: { title: "添加行口通讯录" },
            hidden: true,
          },
        ],
      },
    ],
  },
];
